// 引入调用接口文件
const { request } = require("../../http/request.js");

module.exports = {
    // 上传建议与反馈图片接口
    uploadComplaintPictures: params =>
        request("/home/uploadComplaintPictures", "POST", params),

    // 改变反馈与建议状态接口
    changeComplaintState: params =>
        request("/home/changeComplaintState", "GET", params),

    // 提交反馈与建议接口
    submitComplaint: params => request("/home/submitComplaint", "POST", params),

    // 获取反馈与建议详情
    getComplaint: params => request("/home/getComplaint", "GET", params),

    // 根据用户选择反馈与建议列表接口
    getComplaintByUser: params =>
        request("/home/getComplaintByUser", "GET", params),
};